<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="icon" type="image/png" href="/favicon.png" />
<?php echo CHtml::cssFile(Yii::app()->baseUrl.'/css/reset.css'); ?>
<?php echo CHtml::cssFile(Yii::app()->baseUrl.'/css/main.css'); ?>
<?php Yii::app()->clientScript->registerScriptFile("/js/jquery.js",2);?>
<?php Yii::app()->clientScript->registerScriptFile("/js/jquery-ui.js",2);?>
<?php Yii::app()->clientScript->registerScriptFile("/js/effects.js",2);?>
<?php Yii::app()->clientScript->registerScriptFile("/js/json.js",0);?>

<title><?php echo $this->pageTitle; ?></title>

</head>

<body class="page">

<div id="container">
  <div id="header">
    <h1><?php echo CHtml::link(CHtml::encode(Yii::app()->params['title']),Yii::app()->homeUrl); ?></h1>
  </div><!-- header -->
  <?php if (!Yii::app()->user->isGuest) $this->widget('application.widgets.Bag.Bag'); ?>
  <?php $this->createWidgetPanel('sidebar'); ?>

<div id="content">
	<?php $this->widget('application.widgets.WebPath.WebPath'); ?>
    <?php echo $content; ?>
  </div><!-- content -->

  <br class="clearfloat" />

  <div id="footer">
    <p><?php echo Yii::app()->params['copyrightInfo']; ?><br/>
	<?php if (YII_DEBUG): ?>
	<?php echo $_SERVER['HTTP_HOST'].' ('.$_SERVER['SERVER_ADDR'].')'; ?><br />
	<?php endif; ?>
    <?php echo Yii::powered(); ?></p>
  </div><!-- footer -->
</div><!-- container -->
</body>

</html>
